package concurrent.pcpattern;

public class PCData {

    private final int intData;

    public PCData(int d) {
        intData = d;
    }

    public PCData(String s) {
        intData = Integer.parseInt(s);
    }

    public int getData() {
        return intData;
    }

    @Override
    public String toString() {
        return "PCData{" +
                "intData=" + intData +
                '}';
    }
}
